import request from '/@/utils/request';
enum Api {
	GetFileType = '/api/sysFile/SelectFileType',
    AddFileType= '/api/sysFile/AddSysFileType',
	AddFile= '/api/sysFile/UploadFileFromBase64',
	EditFileType= '/api/sysFile/updateSysFileType',
	DelFileType= '/api/sysFile/deleteFileType',
	GetFileTypeTree = '/api/sysFile/fileTypeTree',
	
}
/**查询 */
export const getFileType = (params?:any) =>
    request({
        url: Api.GetFileType,
        method: 'get',
        params,
    });
	/**分页查询 */
	export const getFileTypeTree = (params?:any) =>
	    request({
	        url: Api.GetFileTypeTree,
	        method: 'post',
	        params,
	    });
	// 增加文件类型
	export const addFileType = (params?: any) =>
		request({
			url: Api.AddFileType,
			method: 'post',
			data: params,
		});
	// 增加文件
	export const addFile = (params?: any) =>
		request({
			url: Api.AddFile,
			method: 'post',
			data: params,
		});
/**保存 */
export const editFileType = (params?: any) =>
    request({
        url: Api.EditFileType,
        method: 'post',
        data: params,
    });
/**删除 */
export const deleteFileType = (params?: any) =>
    request({
        url: Api.DelFileType,
        method: 'post',
        data: params,
    });
